package trinnes.oliver.unimaas.smartpentalath.data;

/**
 *
 * @author Oliver Trinnes
 */
public class Cell
{
  private Cell[] neighbors;
  private Piece piece;
  private int centerDist;

  public Cell()
  {
    piece = Piece.EMPTY;
    neighbors = new Cell[6];
    centerDist = -1;
  }

  public void setCenterDist(int centerDist)
  {
    this.centerDist = centerDist;
  }

  public int getCenterDist()
  {
    return centerDist;
  }
  
  public void setNeighbor(int direction, Cell cell)
  {
    neighbors[direction] = cell;
  }
  
  public Cell getNeighbor(int direction)
  {
    return neighbors[direction];
  }
  
  public void setPiece(Piece piece)
  {
    this.piece = piece;
  }

  public Piece getPiece()
  {
    return piece;
  }

  public Cell[] getNeighbors()
  {
    return neighbors;
  }
  
  
}
